# -*- coding: utf-8 -*-
"""
name:利率_重庆
code：HQD_interest

@author: maggieliu
"""

import math



rating_level = decisionModelResult.get("ratingLevel")
duration = float(ratingRequest.get('timeLimit'))
taxrating = {TX08_TaxRating}.lower()



#加年均应纳增值税和年均应纳所得税总额2万元

customer_dict = {"A":{'a':u"一层",'b':u"一层",'c':u"二层",'d':u"缺失值",u'缺失值':u'缺失值','m':u"二层",},\
                    "B":{"a":u"一层","b":u"二层","c":u"三层","d":u"缺失值",u'缺失值':u'缺失值','m':u"三层"},\
                    "C":{'a':u"二层",'b':u"三层",'c':u"四层",'d':u"缺失值",u'缺失值':u'缺失值','m':u"四层"},\
                    "D":{"a":u"三层","b":u"四层","c":u"五层","d":u"缺失值",u'缺失值':u'缺失值','m':u"五层"},\
                    "E":{"a":u"四层","b":u"五层","c":u"五层","d":u"缺失值",u'缺失值':u'缺失值','m':u"五层"},\
                    "F":{"a":u"缺失值","b":u"缺失值","c":u"缺失值","d":u"缺失值",u'缺失值':u'缺失值','m':u"缺失值"},\
                    u"缺失值":{"a":u"缺失值","b":u"缺失值","c":u"缺失值","d":u"缺失值",u'缺失值':u'缺失值','m':u"缺失值"}}
classification=customer_dict[rating_level][taxrating]




interest_dict1 = {u"一层":0.082,\
                 u"二层":0.088,\
                 u"三层":0.094,\
                 u"四层":0.100,\
                 u"五层":0.106,\
                 u"缺失值":0}


result =interest_dict1[classification]
